package org.shiwen.week9.answer.q1;

public class Bird extends Animal{
    private char color;

    public Bird(int age, char color) {
        super(age);
        this.color = color;
    }

    public char getColor() {
        return color;
    }

    public void setColor(char color) {
        this.color = color;
    }

    @Override
    public void info() {
        System.out.println("我是一只"+color+"的的鸟");
        System.out.println("我今年"+getAge()+"岁了!");
    }
}
